<?php

    /**
     * Created by PhpStorm.
     * User: Administrator
     * Date: 2016/1/21 0021
     * Time: 10:02
     */
    require_once("simple_model.php");

    define("DISROOT",(dirname(__DIR__)) . '/');
    define("DISINCLUDE",__DIR__ . '/');
    define("WEBROOT",dirname(DISROOT) . '/');
    define("DISTEMPLATE", DISROOT . '/template');

    //初始化数据库配置信息
    $db_config = include (WEBROOT) . "/data/config/config.ini.php";
    LightningStorm::init('ml','mysql',array(
        'db_host' => $db_config['db'][1]['dbhost'],
        'db_port' => $db_config['db'][1]['dbport'],
        'db_user' => $db_config['db'][1]['dbuser'],
        'db_pass' => $db_config['db'][1]['dbpwd'],
        'db_name' => $db_config['db'][1]['dbname'],
        'db_prefix' => $db_config['tablepre']
    ),'config');

//    LightningStorm::no_conflict("ml");

    require_once("distribute.php");




